<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        img{
            width: 90px;
            height: 75px;
            
        }
        .item{
            display: flex;
            justify-content: space-around;
            margin-bottom: 15px;
        }
    </style>
</head>

<body>
    <div id="are">
        <div class="box">
            <span style="font-size: 25px;">&lt; 饿了么</span>
        </div>
        <div class="box2">
            <p style="margin: 20px;font-size: 18px;">热卖单品</p>
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="banner">
                    <img v-bind:src="item.pic" alt="">

                </div>
                <div class="ultra">
                    <div class="name" style="width: 145px;">{{item.name}}</div>
                    <div class="deac" style="font-size: 14px; color: red;">{{item.desc}}</div>
                    <div class="num" style="color: red;">{{item.num}}</div>
                    <div class="Stores" style="font-size: 13px; color: gray;">{{item.Stores}}</div>
                </div>
                <div class="right" style="line-height: 79px;">
                    <button style="width: 60px;height: 30px;border-radius:15px ; background-color: orangered;color: white;">{{ item.status==1?'立即兑' :(item.status==2?'以兑完':'已结束')}}</button>
                </div>
            </div>
        </div>

    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>

    var V = new Vue({
        el: '#are',
        data: {
            tasklist: [

                { id: 1, pic: './images/pic1.jpg', name: '脐橙3斤 快递到家', desc: '兑换后入手价8.9元', num: 10, Stores: '适用门店>', status: 1 },
                { id: 2, pic: './images/pic1.jpg', name: '耙耙柑3斤 快递到家', desc: '兑换后入手价9.9元', num: 30, Stores: '适用门店>', status: 2 },
                { id: 3, pic: './images/pic1.jpg', name: '水果捞350g', desc: '兑换后入手价6.9元', num: 60, Stores: '适用门店>', status: 3 },
                { id: 4, pic: './images/pic1.jpg', name: '吃瓜', desc: '兑换后入手价10元', num: 100, Stores: '适用门店>', status: 1 }


            ]
        }



    })
    console.log(el);
    console.log(U.data);



</script>